import request from '@/utils/request'
/**
 * 宠物列表-分页
 */
export const petPagingListApi = (data) => {
  return request({
    url: "/owners/pet",
    params: data
  })
}
/**
 * 宠物列表-删除
 */
export const delPetListApi = (id) => {
  return request({
    url: `/owners/pet/${id}`,
    method: "DELETE",

  })
}
/**
 * 宠物管理列表-添加
 */
export const addPetListApi = (data) => {
  return request({
    method: 'post',
    url: "/owners/pet",
    data
  })
}
/**
 *  宠物管理列表-详情-回显
 */
export const showPetDetailsApi = (id) => {
  return request({
    url: `/owners/pet/${id}`,
  })
}
/**
 *  宠物管理-修改
 */
export const editPetDetailsApi = (data) => {
  return request({
    url: `/owners/pet/${data.id}`,
    method: 'put',
    data
  })
}